package net.gq.logistics.service.serviceimpl;

import net.gq.logistics.mapper.UserMapper;
import net.gq.logistics.pojo.User;
import net.gq.logistics.pojo.UserExample;
import net.gq.logistics.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ASUS
 * @date 2020/5/10
 */


@Service("userService")
public class UserServiceImpl implements UserService {


    @Resource(name = "userMapper")
    private UserMapper mapper;


    @Override
    public int deleteByPrimaryKey(Long userId) {
        return mapper.deleteByPrimaryKey(userId);
    }

    @Override
    public int insert(User record) {
        return mapper.insert(record);
    }

    @Override
    public List<User> selectByExample(UserExample example) {
        return mapper.selectByExample(example);
    }

    @Override
    public User selectByPrimaryKey(Long userId) {
        return mapper.selectByPrimaryKey(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(User record) {
        return mapper.updateByPrimaryKeySelective(record);
    }
}
